import { onMounted, onUnmounted } from 'vue'

export function useDragDrop(target, callback) {
  console.log('useDragDrop--------------', target, callback)
  target.addEventListener('drop', callback)

  // onMounted(() => target.addEventListener('drop', callback))
  onUnmounted(() => target.removeEventListener('drop', callback))
}
